<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /* if(boolean){
            // boolean为true 的情况才会走 {}中的内容
           }
        */
        var a = 10;
        var b = 20;
        if(b>a){
            console.log("b>a");
        }
        console.log("hello world")

        /* 
        if(boolean){
            // boolean 为true
        }else{
            // boolean 为false
        }
        */
        var age = 5 ;
        if(age>=18){
            console.log("成人");
        }else if(age>=12){
            console.log("青少年");
        }else if(age>=6){
            console.log("少年")
        }else{
            console.log("小屁孩")
        }


    </script>
</body>
</html>